my_str="itheima itcast boxxuegu"
count=my_str.count("it")
print(f"字符串{my_str}中有{count}个‘it’字符")

my_str2 =my_str.replace(" ","|")
print(f"字符串{my_str}被替换空格后结果为：{my_str2}")

my_str3=my_str2.split("|")
print(f"字符串{my_str2}按照|分割后，得到{my_str3}")

print(type(my_str))
print(type(my_str2))
print(type(my_str3))